package 序列化和反序列化克隆;

import java.io.Serializable;

public class car1 implements Serializable {
    private static final long serialVersionUID = -763304013652044852L;
    private String name;
    private int jer;

    public car1(){}

    public car1(String name, int jer) {
        this.name = name;
        this.jer = jer;
    }

    public int getJer() {
        return jer;
    }

    public void setJer(int jer) {
        this.jer = jer;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "car1{" +
                "name='" + name + '\'' +
                ", jer=" + jer +
                '}';
    }
}
